<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/includes/taglibs.jsp" %>
<html>
<head>
<title>user</title>
<%@ include file="/includes/meta.jsp" %>
</head>
<body>
<form id="searchForm" name="searchForm" action="${ctx}/admin/user/findUserPaged" method="post">
<table border="1" width="100%">
	<tr>
		<td colspan="6">操作:<a href="${ctx}/admin/user/newUser">新增</a></td>
	</tr>
	<tr>
		<td>序号</td>
		<td>用户名</td>
		<td>显示名</td>
		<td>状态</td>
		<td>注册日期</td>
		<td>注册IP</td>
	</tr>
	<c:forEach items="${page.data}" var="user" varStatus="status">
	<tr>
		<td>${status.index+1}</td>
		<td><a href="${ctx}/admin/user/editUser/${user.id}">${user.username}</a></td>
		<td>${user.realName}</td>
		<spring:eval expression="user.getUserStateValue()" var="userStateValue"/>
		<td>${userStateValue.label}</td>   
		<td><fmt:formatDate value="${user.regDate}" pattern="yyyy-MM-dd"/>&nbsp;</td>
		<td>${user.ipAddress}&nbsp;</td>
	</tr>
	</c:forEach>
	<tr>
	  	<td colspan="6" align="center">
	  		<jsp:include page="/includes/page.jsp">
	  			<jsp:param name="formName" value="searchForm" />
	  			<jsp:param name="formAction" value="/admin/user/findUserPaged" />
	  		</jsp:include>
	  	</td>
    </tr>
</table>
</form>
</body> 
</html>  